<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="name" label="投诉人"> </el-table-column>
      <el-table-column prop="mobile" label="电话"> </el-table-column>
      <el-table-column prop="title" label="标题"> </el-table-column>
      <el-table-column prop="content" label="内容"> </el-table-column>
      <el-table-column prop="date" label="投诉时间"> </el-table-column>
      <el-table-column prop="answerText" label="回复内容"> </el-table-column>
      <el-table-column prop="answerDate" label="回答时间"> </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button
            v-if="scope.row.answerText == ''"
            type="text"
            @click="reply(scope.$index)"
            >答复</el-button
          >
          <el-button type="text" @click="delete scope.$index">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: []
    };
  },
  methods: {
    reply(e) {},
    delete(e) {}
  }
};
</script>